<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <ul>
            <li v-for="book of books">
                <!-- 数组对象的名称大小写需要一致 -->
                {{book.Id}}
                {{book.Name}}
            </li>
        </ul>
    </div>
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <script>
        let app = new Vue({
            el: '#app',
            data() {
                return {
                    books: [
                        {
                            Id: 1,
                            Name: '《代码大全》',
                        },
                        {
                            Id: 2,
                            Name: '《代码整洁之道·程序员的职业素养》'
                        }, {
                            Id: 3,
                            Name: '《代码整洁之道·程序员修炼手册》'
                        }
                    ]
                }
            }
        })
    </script>
</body>

</html>